package com.admin.bo;


/**
 * <p>
 * 静态变量
 * </p>
 *
 * @author
 * @since 2020-02-12
 */
public class Constant {

    //TODO REDIS 标记 ONE:IM

    private static final long serialVersionUID = 1L;

/**=================================================锁=================================================**/
    //redis用户消费事务锁
    public static final String REDIS_LOCK_TRADE_DTS="AIPOS:LOCK:TRADE:DTS";
    public static final String REDIS_LOCK_CART="CORE:CART:LOCK:";

    public static final int REDIS_ORDER_SYN_DB                                                  =9;
    public static final int REDIS_LOCK_DB                                                       =10;

    /**=================================================缓存=================================================**/
    public static final String REDIS_API_CART                                                   ="CORE:CART:";
    public static final String REDIS_API_ERP_RUNINFO                                            ="CORE:CART:ERP:RUNINFO:";
    public static final String REDIS_API_ERP_BAKINFO                                            ="CORE:CART:ERP:BAKINFO:";
    public static final String REDIS_API_SHOPPING_NO                                            ="CORE:SHOPPINGNO:";
    public static final String REDIS_API_ORDER_NO                                               ="CORE:ORDERNO:";
    public static final String REDIS_IM_VC_CLOSE                                                ="ONE:IM:VC:CLOSE:";
    public static final String REDIS_API_ORDER                                                  ="CORE:ORDER:";
    public static final String REDIS_API_MEMBER_ENABLE                                          ="CORE:MEMBER:ENABLE:";

/**=================================================配置=================================================**/

    public static final int CONFIG_DTS_RPC_ENABLE                                               =1;
    public static final int CONFIG_DTS_RPC_DISABLE                                              =0;

    public static final int CONFIG_DTS_INFO_ENABLE                                               =1;
    public static final int CONFIG_DTS_INFO_DISABLE                                              =0;
    public static final int CONFIG_TERMINFO_ENABLE                                               =1;
    public static final int CONFIG_TERMINFO_DISABLE                                              =0;

    public static final int CONFIG_DTS_TYPE_GETGOODS                                            =0;
    public static final int CONFIG_DTS_TYPE_GETMEMBER                                           =1;
    public static final int CONFIG_DTS_TYPE_SYNORDER                                            =2;
    public static final int CONFIG_DTS_TYPE_GETORDERPOINT                                       =3;
    public static final int CONFIG_DTS_TYPE_SYNPOINT                                            =4;
    public static final int CONFIG_DTS_TYPE_SYNORDERCRM                                         =5;
    public static final int CONFIG_DTS_TYPE_GETERPSHOPPINGNO                                    =6;
    public static final int CONFIG_DTS_TYPE_SYNORDER_EXT                                        =7;
    public static final int CONFIG_DTS_TYPE_SYNORDER_EXT_EXT                                    =8;



    public static final int CONFIG_DTS_TYPE_GETGOODS_NEW                                         =10;
    public static final int CONFIG_DTS_TYPE_GETMEMBER_NEW                                        =11;

    public static final int CONFIG_DTS_TYPE_SYNORDER_NEW                                         =12;
    public static final int CONFIG_DTS_TYPE_GETORDERPOINT_NEW                                    =13;
    public static final int CONFIG_DTS_TYPE_SYNPOINT_NEW                                         =14;
    public static final int CONFIG_DTS_TYPE_SYNORDERCRM_NEW                                      =15;


    public static final int CONFIG_DTS_STATE_DEFAUT                                             =0;
    public static final int CONFIG_DTS_ORDER_STATE_SUCCESS                                      =1;
    public static final int CONFIG_DTS_ORDER_STATE_MORE                                         =2;
    public static final int CONFIG_DTS_STATE_FAIL                                               =9;

    public static final int CONFIG_PAY_STATE_DEFAULT                                            =0;
    public static final int CONFIG_PAY_STATE_SUCCESS                                            =1;

    public static final int CONFIG_ORDER_TYPE_AIPOS                                             =0;
    public static final int CONFIG_ORDER_TYPE_AIMALL                                            =1;
    public static final int CONFIG_ORDER_TYPE_ELE                                               =2;
    public static final int CONFIG_ORDER_TYPE_MEITUAN                                           =3;
    public static final int CONFIG_ORDER_TYPE_JDDJ                                              =4;
    public static final int CONFIG_ORDER_TYPE_TAOXIANDA                                         =5;

    /**=================================================数据=================================================**/
    public static final int AUTH_IDENTITY_DEFAULT                                                   =0;
    public static final int AUTH_PROFESSIONAL_DEFAULT                                               =0;
    public static final int AUTH_ANCHOR_DEFAULT                                                     =0;
    public static final int AUTH_BASE_DEFAULT                                                       =0;
    public static final int AUTH_BASE_SUCCESS                                                       =1;


}
